package app.model {

	/**
	 * @author Rendall
	 */
	public class Util {
		public static function shuffleArray(arr : Array) : Array {
			for (var i : int = arr.length;i >= 1;i--) {
				var elem1 : * = arr[i - 1];
				var randIndex : uint = Math.floor(Math.random() * i);
				arr[i - 1] = arr[randIndex];
				arr[randIndex] = elem1;
			}	
			
			return arr;
		}
	}
}
